package parts3.lesson28;


public class DemoSuccess {
    public static void main(String[] args) {
        //通过调用start方法正确的启动多线程
        MyThread mt1 = new MyThread("线程A");
        MyThread mt2 = new MyThread("线程B");
        MyThread mt3 = new MyThread("线程C");


        /**
         * 因为现在实现了接口Runnable，而此接口中没有start方法

         mt1.start();
         mt2.start();
         mt3.start();
         */

        new Thread(mt1).start();
        new Thread(mt2).start();
        new Thread(mt3).start();

    }
}
